package com.chinasoft.tw.service.ningyijing;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ningyijing implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public ningyijing() {
        this.name = "宁怡晶";
        wordList.add("20223000394");
        wordList.add("不想上课");
        wordList.add("明天休息");
    }
    @Override
    public Info getTrueWord() {
        Info info = new Info(name, wordList.get(random.nextInt(wordList.size())));
        return info;
    }
}
